package priv.pront.code.robot.robCom_pri_2022;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * @Description:
 * @Author: pront
 * @Time:2023-06-30 15:01
 */
public class RC_v4_生成字母串 {

    static BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
    static int n;
    static String start;
    static char[] rule;
    static StringBuilder sb = new StringBuilder();
    public static void main(String[] args) throws IOException {
        String[] s = bf.readLine().split(" ");
        n = Integer.parseInt(s[0]);
        start = s[1];
        sb.append(start);
        rule = bf.readLine().toCharArray();

        for (int i = 0; i < rule.length; i++) {
            char cur = sb.charAt(sb.length() - 1);
            if(rule[i] == '0'){
                if(cur <= 90){
                    sb.append((char)(cur + 32));
                }else{
                    sb.append((char)(cur - 32));
                }
            }else{
                if(cur < 90){
                    sb.append((char)(cur + 1));
                }else if(cur > 97){
                    sb.append((char)(cur - 1));
                }
            }
        }
        System.out.println(sb.toString());

    }
}
